package com.myproject.sbp.order.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api("Order接口")
@RequestMapping("/order")
@RestController
public class OrderController {

    @ApiOperation(value = "test", nickname = "测试swagger")
    @ApiImplicitParam(name = "userName", value = "用户名称", required = true, dataType = "String")
    @GetMapping("/test")
    public Object test(@RequestParam("userName") String userName){

        return "order操作成功";
    }

}